package com.chuanyin.mp3player.process;

import com.chuanyin.mp3player.commons.Constants;

import android.app.Activity;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;

public class ChangeDatabasePath extends Activity
{
	@Override
	public SQLiteDatabase openOrCreateDatabase(String name, int mode,
			CursorFactory factory)
	{
		String fn = Constants.getSystemDBFileName();
		if (fn == null)
			return super.openOrCreateDatabase(name, mode, factory);
		else
			return SQLiteDatabase.openOrCreateDatabase(Constants
					.getSystemDBFileName(), factory);

	}
 
}
